<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>class  OSGGLUT_EXPORT osgGLUT::GLUTEventAdapter</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">

<H2>class  OSGGLUT_EXPORT <A HREF="#DOC.DOCU">osgGLUT::GLUTEventAdapter</A></H2></H2><BLOCKQUOTE>Class for adapting GLUT events so that they can be used as input to osgGA::CameraManipulators</BLOCKQUOTE>
<HR>

<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="MosgGA::GUIEventAdapter,M,CGLUTEventAdapter,MGLUTEventAdapter.html">
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>

<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.7.1.1">GLUTEventAdapter</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   <B><A HREF="#DOC.7.1.2">~GLUTEventAdapter</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   EventType <B><A HREF="#DOC.7.1.3">getEventType</A></B>() const 
<DD><I>Get the EventType of the GUI event</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.4">getKey</A></B>() const 
<DD><I>key pressed, return -1 if inappropriate for this event.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.5">getButton</A></B>() const 
<DD><I>button pressed/released, return -1 if inappropriate for this event</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.6">getXmin</A></B>() const 
<DD><I>window minimum x.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.7">getXmax</A></B>() const 
<DD><I>window maximum x.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.8">getYmin</A></B>() const 
<DD><I>window minimum y.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.9">getYmax</A></B>() const 
<DD><I>window maximum y.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.10">getX</A></B>() const 
<DD><I>current mouse x position</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   int <B><A HREF="#DOC.7.1.11">getY</A></B>() const 
<DD><I>current mouse y position</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   unsigned int <B><A HREF="#DOC.7.1.12">getButtonMask</A></B>() const 
<DD><I>current mouse button state </I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual   double <B><A HREF="#DOC.7.1.13">time</A></B>() const 
<DD><I>time in seconds of event.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   void <B><A HREF="#DOC.7.1.14">setWindowSize</A></B>(int Xmin, int Ymin, int Xmax, int Ymax)
<DD><I>static method for setting window dimensions</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   void <B><A HREF="#DOC.7.1.15">setButtonMask</A></B>(unsigned int buttonMask)
<DD><I>static method for setting button state</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.16">adaptResize</A></B>(double t, int Xmin, int Ymin, int Xmax, int Ymax)
<DD><I>method for adapting resize events.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.17">adaptMouseMotion</A></B>(double t, int x, int y)
<DD><I>method for adapting mouse motion events whilst mouse buttons are pressed</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.18">adaptMousePassiveMotion</A></B>(double t, int x, int y)
<DD><I>method for adapting mouse motion events whilst no mouse button are pressed</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.19">adaptMouse</A></B>(double t, int button, int state, int x, int y)
<DD><I>method for adapting mouse button pressed/released events</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.20">adaptKeyboard</A></B>(double t, unsigned char key, int x, int y )
<DD><I>method for adapting keyboard events</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.21">adaptFrame</A></B>(double t)
<DD><I>method for adapting frame events, ie.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.7.1.22">copyStaticVariables</A></B>()
</DL></P>

<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>EventType <B><A HREF="#DOC.7.1.23">_eventType</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.7.1.24">_key</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.7.1.25">_button</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.7.1.26">_Xmin</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int  <B><A HREF="#DOC.7.1.27">_Xmax</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.7.1.28">_Ymin</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int  <B><A HREF="#DOC.7.1.29">_Ymax</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.7.1.30">_mx</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.7.1.31">_my</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>unsigned int <B><A HREF="#DOC.7.1.32">_buttonMask</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>double <B><A HREF="#DOC.7.1.33">_time</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   unsigned int <B><A HREF="#DOC.7.1.34">_s_accumulatedButtonMask</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.35">_s_button</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.36">_s_Xmin</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.37">_s_Xmax</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.38">_s_Ymin</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.39">_s_Ymax</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.40">_s_mx</A></B>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>static   int <B><A HREF="#DOC.7.1.41">_s_my</A></B>
</DL></P>

</DL>

<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Class for adapting GLUT events so that they can be used as input to osgGA::CameraManipulators</BLOCKQUOTE>
<DL>

<A NAME="GLUTEventAdapter"></A>
<A NAME="DOC.7.1.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> GLUTEventAdapter()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~GLUTEventAdapter"></A>
<A NAME="DOC.7.1.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   ~GLUTEventAdapter()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getEventType"></A>
<A NAME="DOC.7.1.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   EventType getEventType() const </B></TT>
<DD>Get the EventType of the GUI event
<DL><DT><DD></DL><P>
<A NAME="getKey"></A>
<A NAME="DOC.7.1.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getKey() const </B></TT>
<DD>key pressed, return -1 if inappropriate for this event. 
<DL><DT><DD></DL><P>
<A NAME="getButton"></A>
<A NAME="DOC.7.1.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getButton() const </B></TT>
<DD>button pressed/released, return -1 if inappropriate for this event
<DL><DT><DD></DL><P>
<A NAME="getXmin"></A>
<A NAME="DOC.7.1.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getXmin() const </B></TT>
<DD>window minimum x. 
<DL><DT><DD></DL><P>
<A NAME="getXmax"></A>
<A NAME="DOC.7.1.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getXmax() const </B></TT>
<DD>window maximum x. 
<DL><DT><DD></DL><P>
<A NAME="getYmin"></A>
<A NAME="DOC.7.1.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getYmin() const </B></TT>
<DD>window minimum y. 
<DL><DT><DD></DL><P>
<A NAME="getYmax"></A>
<A NAME="DOC.7.1.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getYmax() const </B></TT>
<DD>window maximum y. 
<DL><DT><DD></DL><P>
<A NAME="getX"></A>
<A NAME="DOC.7.1.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getX() const </B></TT>
<DD>current mouse x position
<DL><DT><DD></DL><P>
<A NAME="getY"></A>
<A NAME="DOC.7.1.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   int getY() const </B></TT>
<DD>current mouse y position
<DL><DT><DD></DL><P>
<A NAME="getButtonMask"></A>
<A NAME="DOC.7.1.12"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   unsigned int getButtonMask() const </B></TT>
<DD>current mouse button state 
<DL><DT><DD></DL><P>
<A NAME="time"></A>
<A NAME="DOC.7.1.13"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual   double time() const </B></TT>
<DD>time in seconds of event. 
<DL><DT><DD></DL><P>
<A NAME="setWindowSize"></A>
<A NAME="DOC.7.1.14"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   void setWindowSize(int Xmin, int Ymin, int Xmax, int Ymax)</B></TT>
<DD>static method for setting window dimensions
<DL><DT><DD></DL><P>
<A NAME="setButtonMask"></A>
<A NAME="DOC.7.1.15"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   void setButtonMask(unsigned int buttonMask)</B></TT>
<DD>static method for setting button state
<DL><DT><DD></DL><P>
<A NAME="adaptResize"></A>
<A NAME="DOC.7.1.16"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptResize(double t, int Xmin, int Ymin, int Xmax, int Ymax)</B></TT>
<DD>method for adapting resize events. 
<DL><DT><DD></DL><P>
<A NAME="adaptMouseMotion"></A>
<A NAME="DOC.7.1.17"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptMouseMotion(double t, int x, int y)</B></TT>
<DD>method for adapting mouse motion events whilst mouse buttons are pressed
<DL><DT><DD></DL><P>
<A NAME="adaptMousePassiveMotion"></A>
<A NAME="DOC.7.1.18"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptMousePassiveMotion(double t, int x, int y)</B></TT>
<DD>method for adapting mouse motion events whilst no mouse button are pressed
<DL><DT><DD></DL><P>
<A NAME="adaptMouse"></A>
<A NAME="DOC.7.1.19"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptMouse(double t, int button, int state, int x, int y)</B></TT>
<DD>method for adapting mouse button pressed/released events
<DL><DT><DD></DL><P>
<A NAME="adaptKeyboard"></A>
<A NAME="DOC.7.1.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptKeyboard(double t, unsigned char key, int x, int y )</B></TT>
<DD>method for adapting keyboard events
<DL><DT><DD></DL><P>
<A NAME="adaptFrame"></A>
<A NAME="DOC.7.1.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void adaptFrame(double t)</B></TT>
<DD>method for adapting frame events, ie. idle/display callback.
<DL><DT><DD></DL><P>
<A NAME="copyStaticVariables"></A>
<A NAME="DOC.7.1.22"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void copyStaticVariables()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_eventType"></A>
<A NAME="DOC.7.1.23"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>EventType _eventType</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_key"></A>
<A NAME="DOC.7.1.24"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _key</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_button"></A>
<A NAME="DOC.7.1.25"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _button</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Xmin"></A>
<A NAME="DOC.7.1.26"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _Xmin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Xmax"></A>
<A NAME="DOC.7.1.27"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int  _Xmax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Ymin"></A>
<A NAME="DOC.7.1.28"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _Ymin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_Ymax"></A>
<A NAME="DOC.7.1.29"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int  _Ymax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_mx"></A>
<A NAME="DOC.7.1.30"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _mx</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_my"></A>
<A NAME="DOC.7.1.31"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _my</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_buttonMask"></A>
<A NAME="DOC.7.1.32"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>unsigned int _buttonMask</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_time"></A>
<A NAME="DOC.7.1.33"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>double _time</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_accumulatedButtonMask"></A>
<A NAME="DOC.7.1.34"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   unsigned int _s_accumulatedButtonMask</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_button"></A>
<A NAME="DOC.7.1.35"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_button</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Xmin"></A>
<A NAME="DOC.7.1.36"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_Xmin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Xmax"></A>
<A NAME="DOC.7.1.37"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_Xmax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Ymin"></A>
<A NAME="DOC.7.1.38"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_Ymin</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_Ymax"></A>
<A NAME="DOC.7.1.39"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_Ymax</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_mx"></A>
<A NAME="DOC.7.1.40"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_mx</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_s_my"></A>
<A NAME="DOC.7.1.41"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>static   int _s_my</B></TT>
<DL><DT><DD></DL><P></DL>

<HR><DL><DT><B>This class has no child classes.</B></DL>

<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
